﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Peninsula.Account.common
{
    public  class Setting
    {
        /// <summary>
        /// 设置密码强度的正则表达式
        /// </summary>
        public string PasswordStrength { get; set; }

        /// <summary>
        /// 密码不符合规则的提示消息
        /// </summary>
        public string PasswordInvalidMessage { get; set; }

        /// <summary>
        /// 是否启用锁定用户功能。（密码错误FailedPasswordAttemptCount后锁定用户）
        /// </summary>
        public bool EnableLockout { get; set; }

        /// <summary>
        /// 密码可重试次数
        /// </summary>
        public int FailedPasswordAttemptCount { get; set; }

        /// <summary>
        /// 锁定多长时间后解锁
        /// </summary>
        public int MinutesToUnlock { get; set; }
    }
}
